﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Rizmar
{
    public partial class ListaBorderoForm : Form
    {
        public ListaBorderoForm()
        {
            InitializeComponent();
        }

        private void cancelarButton_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void fillByToolStripButton_Click(object sender, EventArgs e)
        {
            try
            {
                byte[] data_1 = new byte[0];
                byte[] data_2 = new byte[0];
                this.pesquisaBorderoTableAdapter.FillBy(this.rizmarDataSet.PesquisaBordero, data_1, data_2);
            }
            catch (System.Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.Message);
            }

        }

        private void fillToolStripButton_Click_1(object sender, EventArgs e)
        {
            try
            {
                this.pesquisaBorderoTableAdapter.Fill(this.rizmarDataSet.PesquisaBordero, ((System.DateTime)(System.Convert.ChangeType(data_1ToolStripTextBox.Text, typeof(System.DateTime)))), ((System.DateTime)(System.Convert.ChangeType(data_2ToolStripTextBox.Text, typeof(System.DateTime)))));
            }
            catch (System.Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.Message);
            }

        }
    }
}
